//package com.cxb.springboot.filter;
//
//import lombok.extern.slf4j.Slf4j;
//
//import javax.servlet.*;
//import javax.servlet.annotation.WebFilter;
//import javax.servlet.http.HttpServletRequest;
//import java.io.IOException;
//
///**
// * @Classname MyFilter
// * @Date 2023/4/15 0:00
// * @Created by Administrator
// * @Description TODO
// */
//@WebFilter(filterName = "logFilter", urlPatterns = {"/*", "/image/*", "/app/*", "/edgeapp/*"})
//@Slf4j
//public class MyFilter implements Filter {
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//
//    }
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        ServletRequest myHttpServletRequestWrapper = null;
//        if (servletRequest instanceof HttpServletRequest) {
//            myHttpServletRequestWrapper = new MyHttpServletRequestWrapper((HttpServletRequest) servletRequest);
//        }
//        if (myHttpServletRequestWrapper == null) {
//            filterChain.doFilter(servletRequest, servletResponse);
//        } else {
//            filterChain.doFilter(myHttpServletRequestWrapper, servletResponse);
//        }
//    }
//
//    @Override
//    public void destroy() {
//
//    }
//}
